package com.nalanalana.spring6.validator.three;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.io.Console;

/**
 * @Project ：learn_spring
 * @File ：TestUser.java
 * @IDE ：IntelliJ IDEA
 * @Author ：自由如风间
 * @Date ：2025/4/7 16:40
 * @Description ：For study.
 */

public class TestUser {

    public static void main(String[] args) {
        ApplicationContext context =
                new AnnotationConfigApplicationContext(ValidationConfig.class);
        MyService service = context.getBean(MyService.class);
        User user = new User("cyo-san", 20, "13700001111");
        service.testMethod(user);
    }
}
